#データベース情報
class DBInfo
  ADAPTER = "mysql"
  HOST = "localhost"
  DB_NAME = "study_support"
  USER = "root"
  PASSWORD = ""
  
  def DBInfo.connect
    ActiveRecord::Base.establish_connection(
                                            :adapter => ADAPTER,
                                            :host => HOST,
                                            :database => DB_NAME,
                                            :user => USER,
                                            :password => PASSWORD)
  end
  
end